Create Policy
Creates a Replenishment Policy in the warehouse specified by its id path
parameter.
A Policy created without is_active is inactive: it is not evaluated and no
Replenishment rebuild is requested. Creating an active Policy invalidates the
warehouse’s published Replenishment results and requests a rebuild, so the
report catches up asynchronously.
Authorizations
Generate a JWT access token through a Custom Global Integration and provide it with each request in the Authorization header prefixed with "Bearer" and then a single space.
Path Parameters
The id of the referenced Warehouse.
Query Parameters
Specify additional fields of the ReplenishmentPolicy object to be included in the response.
basic, all, name, is_active, sort_order, merchant_ids, merchants, product_profile_ids, product_profiles, product_profile_match_mode, handling_class_ids, handling_classes, subject_readable, location_profile, demand_period_days, trigger_doi_days, target_doi_days, qualification_reason, flagged_sku_count, skipped_sku_count, slotting_forbidden_count, results_refresh_pending, created_at, updated_at Specify direct fields of selected Merchant objects to include under included.Merchant. Add merchants to the root fields parameter to return the relationship. type and id are always returned.
Specify direct fields of an included Merchant object.
code, name, status, created_at, updated_at Specify fields of selected ProductProfile objects to include under included.ProductProfile. Add product_profiles to the root fields parameter to return the relationship. type and id are always returned.
Specify fields of an included ProductProfile object.
basic, all, name, code, conditions, conditions_readable, matched_count, classification, created_at, updated_at Specify direct fields of selected HandlingClass objects to include under included.HandlingClass. Add handling_classes to the root fields parameter to return the relationship. type and id are always returned.
Specify direct fields of an included HandlingClass object.
name, code, sort_order, conditions, conditions_readable, matched_count, classification, created_at, updated_at Specify direct fields of the LocationProfile selected by each Policy.
Location Tags and Slot Types remain available from the Profile's own endpoint.
Specify direct fields of the included LocationProfile object.
name, description, status, member_count, match, match_readable, active_revision, pending_revision, used_by, created_at, updated_at Body
The configuration of a new Replenishment Policy. The warehouse comes from the
path, and every derived or index-owned property of ReplenishmentPolicy is
rejected if present.
The user-visible Policy name; must be unique within the warehouse.
1 - 255"Fast Movers - Forward Pick"
The id of the Location Profile supplying the target group. It must belong
to this warehouse and already have a published revision.
x >= 13
The Product Velocity window used to derive daily demand. Must equal one of the configured Product Velocity periods.
1 <= x <= 6553530
The coverage threshold below which an assigned Product is flagged for Replenishment.
0 <= x <= 999999.99997
The target coverage used to calculate the required replenishment quantity.
Must not be lower than trigger_doi_days; equal values are accepted.
0 <= x <= 999999.999921
Whether the Policy participates in Product evaluation. Omitted, a Policy is created inactive and no Replenishment rebuild is requested.
Policy precedence; lower values are evaluated first, with id as the tie-break.
0 <= x <= 6553510
Merchant IDs the Policy selects. null or an empty list means every Merchant.
100x >= 1Product Profile IDs the Policy selects. An empty list means Product Profiles do not restrict the subject.
100x >= 1How the selected Product Profiles are matched against a Product. The none
mode requires at least one Product Profile.
any, all, none Handling Class IDs the Policy selects. Each must be assigned to this warehouse. An empty list means Handling Classes do not restrict the subject.
100x >= 1Response
The Replenishment Policy was created successfully.
A Replenishment Policy configuration for one warehouse. The Policy selects Products by Merchant, Product Profile, and Handling Class, then applies Trigger and Target days-of-inventory thresholds to one Location Profile.
Lists of referenced objects included by specifying optional fields. See the selecting fields page for more information.
Additional metadata pertaining to the response.